package com.core.cloundbusinessapi.system.depart.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author =====Lqj=====
 * @className CloudSystemDepartQueryDTO
 * @description
 * @create 2024/11/29 19:18
 **/
@Getter
@Setter
public class CloudSystemDepartQueryDTO extends CloudSystemDepartDTO {

    /**
     * 下一级
     */
    private List<CloudSystemDepartQueryDTO> nextLevelDepart = new ArrayList<>();

    // 添加子部门
    public void addChild(CloudSystemDepartQueryDTO child) {
        this.nextLevelDepart.add(child);
    }
}
